Ext.namespace('Ext.ux','QoDesk');

QoDesk.App = new Ext.app.App({
   init : function(){
      Ext.BLANK_IMAGE_URL = 'resources/images/default/s.gif';
      Ext.QuickTips.init();
   },

   /**
    * The member's name and group name for this session.
    */
   memberInfo: {
      name: '<?php print $qo_desk->member_info->name ?>',
      group: '<?php print $qo_desk->member_info->group ?>'
   },

   /**
    * An array of the module definitions.
    * The definitions are used until the module is loaded on demand.
    */
   modules: [ <?php $qo_desk->print_modules(); ?> ],

   /**
     * The members privileges.
     */
   privileges: <?php $qo_desk->print_privileges(); ?>,

   /**
    * The desktop config object.
    */
   desktopConfig: {
      appearance: <?php $qo_desk->print_appearance(); ?>,
      background: <?php $qo_desk->print_background(); ?>,
      launchers: <?php $qo_desk->print_launchers(); ?>,
      taskbarConfig: {
         buttonScale: 'large',
         position: 'bottom',
         quickstartConfig: {
            width: 120
         },
         startButtonConfig: {
            iconCls: 'icon-qwikioffice',
            text: 'Start'
         },
         startMenuConfig: {
            iconCls: 'icon-user-48',
            title: '<?php print $qo_desk->member_info->name ?>',
            width: 320
         }
      }
   }
});